/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.graphic.objects.addons;

import model.graphic.objects.addons.*;
import model.graphic.objects.*;
import java.awt.geom.Line2D;
import model.graphic.locations.Location;

/**
 *
 * @author Jelle
 */
public class ShrinkAddon extends Addon {
    private boolean shrinked = false;

    public ShrinkAddon() { }

    /**
     * @return the collapsed
     */
    public boolean isShrinked() {
        return shrinked;
    }

    /**
     * @param collapsed the collapsed to set
     */
    public void setShrinked(boolean shrinked) {
        this.shrinked = shrinked;
    }

    /**
     * @param center the center to set
     */
    public void setCenter(Location center) {
        this.center = center;
        l1 = new Line2D.Double(center.getX() + 8, center.getY() + 8, center.getX() + 8 + 6, center.getY() + 8);
        l2 = new Line2D.Double(center.getX() + 8 + 3, center.getY() + 8 - 3, center.getX() + 8 + 3, center.getY() + 8 + 3);
    }
}
